home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / ptolemy / pt-0.002 / pt-0.6.linux-dynamic-patch1
Text File  |  1996-04-24  |  3KB  |  84 lines

  1. diff -rcd oldpt/ptolemy/mk/config-linux.mk users/ptolemy/mk/config-linux.mk
  2. *** oldpt/ptolemy/mk/config-linux.mk    Thu Apr  4 20:53:46 1996
  3. --- users/ptolemy/mk/config-linux.mk    Thu Apr 25 04:08:50 1996
  4. ***************
  5. *** 93,104 ****
  6.   # linker to use for pigi and interpreter.
  7.   LINKER    = $(CPLUSPLUS)
  8.   
  9.   # Location of GNU libg++ shared libraries
  10.   SHARED_COMPILERDIR =    /usr/lib#$(PTOLEMY)/gnu/$(PTARCH)/lib
  11.   SHARED_COMPILERDIR_FLAG = -L$(SHARED_COMPILERDIR)
  12.   
  13.   # Command to build C++ shared libraries
  14. ! SHARED_LIBRARY_COMMAND = $(CPLUSPLUS) -shared $(SHARED_COMPILERDIR_FLAG) -o
  15.    
  16.   # Command to build C shared libraries
  17.   CSHARED_LIBRARY_COMMAND = $(CC) -shared $(SHARED_COMPILERDIR_FLAG) -o
  18. --- 93,113 ----
  19.   # linker to use for pigi and interpreter.
  20.   LINKER    = $(CPLUSPLUS)
  21.   
  22. + #ifeq ($(USE_SHARED_LIBS),yes)
  23. + # Use Position Independent Code to build shared libraries
  24. + C_SHAREDFLAGS =         -fpic
  25. + CC_SHAREDFLAGS =        -fpic
  26. + # mk/userstars.mk uses these vars
  27. + USER_C_SHAREDFLAGS =    $(C_SHAREDFLAGS)
  28. + USER_CC_SHAREDFLAGS =   $(CC_SHAREDFLAGS)
  29. + LIBSUFFIX =             so
  30.   # Location of GNU libg++ shared libraries
  31.   SHARED_COMPILERDIR =    /usr/lib#$(PTOLEMY)/gnu/$(PTARCH)/lib
  32.   SHARED_COMPILERDIR_FLAG = -L$(SHARED_COMPILERDIR)
  33.   
  34.   # Command to build C++ shared libraries
  35. ! SHARED_LIBRARY_COMMAND = $(CC) -shared $(SHARED_COMPILERDIR_FLAG) -o
  36.    
  37.   # Command to build C shared libraries
  38.   CSHARED_LIBRARY_COMMAND = $(CC) -shared $(SHARED_COMPILERDIR_FLAG) -o
  39. ***************
  40. *** 117,122 ****
  41. --- 126,132 ----
  42.   # be absolute pathnames, not relative pathnames.
  43.   SHARED_LIBRARY_PATH = $(PTOLEMY)/lib.$(PTARCH):$(PTOLEMY)/octtools/lib.$(PTARCH):$(SHARED_COMPILERDIR):$(PTOLEMY)/tcltk/tcl.$(PTARCH)/lib/shared:$(PTOLEMY)/tcltk/tk.$(PTARCH)/lib/shared/:$(PTOLEMY)/tcltk/itcl.$(PTARCH)/lib/shared
  44.   SHARED_LIBRARY_R_LIST = -Wl,-R,$(SHARED_LIBRARY_PATH)
  45. + #endif
  46.   
  47.   # domains/ipus/islang uses BISONFLEXLIBS
  48.   BISONFLEXLIB =    -fl
  49. ***************
  50. *** 139,145 ****
  51.   #    Don't use -m486, it's the default, except for those with the
  52.   #    Pentium optimized compiler; for them -m486 makes things worse.
  53.   #OPTIMIZER =    -g #-m486 -pipe
  54. ! OPTIMIZER =    -O2 #-fomit-frame-pointer #-m486 -pipe
  55.   # -Wsynth is new in g++-2.6.x, however 2.5.x does not support it
  56.   # Under gxx-2.7.0 -Wcast-qual will drown you with warnings from libg++ includes
  57.   WARNINGS =    -Wall -Wcast-align -Wsynth # -Wcast-qual 
  58. --- 149,155 ----
  59.   #    Don't use -m486, it's the default, except for those with the
  60.   #    Pentium optimized compiler; for them -m486 makes things worse.
  61.   #OPTIMIZER =    -g #-m486 -pipe
  62. ! OPTIMIZER =    -O2 -fomit-frame-pointer #-m486 -pipe
  63.   # -Wsynth is new in g++-2.6.x, however 2.5.x does not support it
  64.   # Under gxx-2.7.0 -Wcast-qual will drown you with warnings from libg++ includes
  65.   WARNINGS =    -Wall -Wcast-align -Wsynth # -Wcast-qual 
  66. ***************
  67. *** 165,171 ****
  68.   
  69.   
  70.   # Ask ld to strip symbolic information, otherwise, expect a 32Mb pigiRpc
  71. ! LINKSTRIPFLAGS=-Wl,-S,-x
  72.   
  73.   #LINKFLAGS=-L$(LIBDIR) $(LINKSTRIPFLAGS)# -static
  74.   #LINKFLAGS_D=-L$(LIBDIR) -g -static
  75. --- 175,181 ----
  76.   
  77.   
  78.   # Ask ld to strip symbolic information, otherwise, expect a 32Mb pigiRpc
  79. ! LINKSTRIPFLAGS=-Wl,-s
  80.   
  81.   #LINKFLAGS=-L$(LIBDIR) $(LINKSTRIPFLAGS)# -static
  82.   #LINKFLAGS_D=-L$(LIBDIR) -g -static
  83.